home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / mod < prev    next >
Text File  |  1994-04-25  |  529b  |  19 lines

  1. mod:
  2.  
  3. Syntax: mod( A , B )
  4.  
  5. Description:
  6.  
  7.     The mod routine returns the floating point remainder of the
  8.     division of A by B: zero if B is zero or if A/B would
  9.     overflow; otherwise the number F with the same sign as A, such
  10.     that A = iB + F for some integer i, and |f| < |B|.
  11.  
  12.     When the arguments to mod are two matrices, then an element by
  13.     element mod is performed. Mod works on complex number also.
  14.  
  15.     mod(x,y) is equivalent to: n = int( x/y )
  16.                    mod(x,y) = x - y.*n                   
  17.  
  18.     mod() is implemented via libm.a fmod() function.
  19.